package com.guigu.guilimall.auth.feign;

import com.atguigu.common.utils.R;
import com.guigu.guilimall.auth.entity.ao.SociUser;
import com.guigu.guilimall.auth.entity.vo.MemberRegisterVo;
import com.guigu.guilimall.auth.entity.vo.UserLoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("member/member/register")
     R register(@RequestBody MemberRegisterVo vo);

    @RequestMapping("member/member/login")
     R login(@RequestBody  UserLoginVo vo);

    @RequestMapping("member/member/authLogin")
     R authLogin(@RequestBody SociUser vo);

}
